
    <?php
      
      
        //dump($models); die;
      
      ?>

    
<div class="yesnomaybearea bgcolor-main">
    <div id="messageyesnomaybe">
        <div class="matchesmessage" style = "display: none" >

            <h1>Today’s <script> //console.log("your message here"); </script>st Match</h1>
            <p class="todaysmatchesp">Is <?php echo $profile['username']; ?> a possible Match? You think so! You said Yes.</p>
            <p class="fourteen">Say hello and share what you like about <?php echo $profile['username']; ?> profile.</p>

            <textarea rows="" cols="" name="" id="todaysmatchmessagebody"></textarea>

            <div class="matchesmessagebottom">
                <a title="Send Message" class="button_style" id="todaysmatchessendmessagebutton" href="javascript:;">Send Message</a>
                <a class="linkfix" href="">Show me my next match</a></div>
        </div>
    </div>


    <!--- maybe -->
    <div style="display: none;" id="selectyesnomaybe">
        <div class="yesnomaybelefttest">
            <h1>Today’s 1st Match</h1>
            <p class="todaysmatchesp">Is <?php// echo $profile['username']; ?> a possible Match? Click a button to find out.</p>
        </div>
        <div class="yesnomayberighttest"> 
            <a class="maybetext" title="Maybe" href="javascript:;">Maybe</a>
            <a title="No" class="nobutton" href="javascript:;"><img border="0" src="http://pmi.peoplemedia.com/vc/1590883/21/images/buttons/nobutton.png"></a> 
            <a title="Yes" class="yesbutton" href="javascript:;"><img border="0" src="http://pmi.peoplemedia.com/vc/1590883/21/images/buttons/yesbutton.png">
            </a> 
        </div>
    </div>
    <!-- maybe -->

    <!-- pickker -->
    <div style="display:none;" id="todaysmatchpicked">
        <div class="yesnomaybelefttest">
            <h1>Today’s 1st Match</h1>
            <p class="todaysmatchesp">Is BIGHUGGS1 a possible Match? You said no. Did you change your mind?
                <a class="linkfix" href="/v3/profile/todaysmatches?current=2">Show me my next match</a></p>
        </div>



    </div>
    <!-- pickker -->


</div>

<div class="yesnomaybearea bgcolor-main" id = "yesnomaybearea1" style="display: none;">
    <div id="selectyesnomaybe">
        <div class="yesnomaybelefttest">
            <h1>Today’s 1st Match</h1>
            <p class="todaysmatchesp">Is <span style="color: #DF7402;"> <?php echo $profile['username']; ?> </span> a possible Match? Click a button to find out.</p>
        </div>
        <div class="yesnomayberighttest"> 
            <a title="No" class="nobutton" href="javascript:;"><img border="0" src="<?php echo FRONT_SITE_URL ?>www/images/images1/noxbutton.png"></a> 
            <a title="Yes" id="yesbuttonlink" class="yesbutton" href="#"><img border="0" src="<?php echo FRONT_SITE_URL ?>www/images/images1/yescheckbutton.png"></a> 
            </a> 
        </div>
    </div>
    <div style="display:none;" id="messageyesnomaybe">
        <div class="matchesmessage">

            <h1>Today’s 1st Match</h1>
            <p class="todaysmatchesp">Is <?php echo $profile['username']; ?> a possible Match? You think so! You said Yes.</p>
            <p class="fourteen">Say hello and share what you like about <?php echo $profile['username']; ?> profile.</p>

            <textarea rows="" cols="" name="" id="todaysmatchmessagebody"></textarea>

            <div class="matchesmessagebottom">
                <a title="Send Message" class="button_style" id="todaysmatchessendmessagebutton" href="javascript:;">Send Message</a>
                <a class="linkfix" href="/v3/profile/todaysmatches?current=2">Show me my next match</a></div>
        </div>
    </div>
    <div style="display:none;" id="todaysmatchpicked">
        <div class="yesnomaybelefttest">
            <h1>Today’s 1st Match</h1>
            <p class="todaysmatchesp">Is <?php echo $profile['username']; ?> a possible Match? You said no. Did you change your mind?
                <a class="linkfix" href="/v3/profile/todaysmatches?current=2">Show me my next match</a></p>
        </div>



    </div>
    <p class="clearfix">&nbsp;</p>
</div>

<input type="hidden" id="SuggestedMemberTodaysMatch" value="3AECF982CC89DC2D">

<input type="hidden" id="SuggestedMemberUsernameTodaysMatch" value="SUITANDTIEGUY26">
<input type="hidden" id="CurrentTodaysMatch" value="1">


<script>
    var PeopleMedia = PeopleMedia || {};
    PeopleMedia.TodaysMatches = {
        IsRedirecting: false,
        SendSelection: function() {
            var startTime = new Date().getTime();
            var url = FRONT_SITE_URL + 'todaymatchs/profiletopmatchs/viewprofile';
            //alert(url);
            var timeoutValue = 30000;
            /*var selectionData = {
                "matchAction": selection,
                "suggestedMember": "ABF6DC90A6DC048A",
                "suggestedMemberUsername": "FRANCKO",
                "current": "4",
                "messageBody": ""
            };*/
        
            var messageText = $jq("#todaysmatchmessagebody").val();
            //alert(messageText);
            var form_data = {'messagebody':messageText};
            //alert(form_data.abc);
            $jq.ajax({
                type: "POST",
                url: url,
                data: form_data,
                //dataType: "json",
                //contentType: "application/json; charset=utf-8",
                success: function(data) {
                    //alert(messageText);
                    //alert('success111111fggb1');
                    
                    /*if (data.redirect) {
                        PeopleMedia.TodaysMatches.IsRedirecting = true;
                        window.location.href = data.redirect;
                    } else {
                        if (selection == '1') {
                            $jq('#messageyesnomaybe').show();
                            $jq('#selectyesnomaybe').hide();
                            $jq('#todaysmatchpicked').hide();
                        }
                    }*/
                    location.reload();

                    //alert(count);
                },
                error: function(data) {
                    alert('error11');
                    /*if ($jq && $jq.mobile && PeopleMedia.TodaysMatches.IsRedirecting) {
                        return;
                    }*/
                },
                /*async: true,
                cache: false,
                timeout: timeoutValue,
                suppressErrors: true*/
            });
            return false;
        },
        SendMessage: function() {
            var messageText = $jq("#todaysmatchmessagebody").val();
            //alert(messageText);
            if (messageText != '') {
                var startTime = new Date().getTime();
                var url = FRONT_SITE_URL + 'todaymatchs/profiletopmatchs/viewprofile';
                var timeoutValue = 30000;
                /*var mestimeoutValuesageData = {
                    "SkipCSSVerif": "HTMLEditor",
                    "matchAction": "1",
                    "suggestedMember": "ABF6DC90A6DC048A",
                    "suggestedMemberUsername": "FRANCKO",
                    "current": "4",
                    "messageBody": messageText
                };*/
                $jq.ajax({
                    type: "POST",
                    url: url,
                    data: JSON.stringify(messageData),
                    dataType: "json",
                    contentType: "application/json; charset=utf-8",
                    success: function(data) {
                        alert('success1');
                        if (data.redirect) {
                            window.location.href = data.redirect;
                        } else {
                            $jq('#todaysmatchmessagebody').html(data.html);
                        }
                    },
                    error: function(jqXHR, textStatus, errorThrown) {
                        /*if (errorThrown === 'timeout' || (jqXHR.readyState !== 0 && jqXHR.status !== 0)) {
                         var endTime = new Date().getTime();
                         var duration = (endTime - startTime);
                         PeopleMedia.Popups.ShowGenericMessage(PeopleMedia.Popups.AjaxErrorMessage());
                         PeopleMedia.Logger.LogAjaxErrorXHR("Ajax request failure", url, { method: "PeopleMedia.TodaysMatches.SendMessage", duration: duration }, jqXHR, textStatus, errorThrown, function() {
                         });
                         }*/

                        //alert('bvsdkjfsdk');


                    },
                    async: true,
                    cache: false,
                    timeout: timeoutValue,
                    suppressErrors: true
                });
            } else {
                //alert('error chinh');
                PeopleMedia.Popups.ShowGenericMessage("Write a message now to then click Send");
            }
            return false;
        },
        Initialize: function() {
            $jq(".button_style_green, .yesbutton").click(function() {
                //PeopleMedia.TodaysMatches.SendSelection('1');
                return false;
            });
            $jq(".button_style_yellow, .maybetext").click(function() {
                //PeopleMedia.TodaysMatches.SendSelection('2');
                return false;
            });
            $jq(".button_style_red, .nobutton").click(function() {
                //PeopleMedia.TodaysMatches.SendSelection('0');
                return false;
            });
            $jq("#todaysmatchessendmessagebutton").click(function() {
                PeopleMedia.TodaysMatches.SendSelection();
                PeopleMedia.Popups.ShowGenericMessage("Send Success Message!");
                $('#messageyesnomaybe').hide();
                //window.location.reload();
                //$("#step1Content").load();
                //$("#step1Content").load();
                $('#columnleft').load();
                $('#yesbuttonlink').hide();
                //location.reload();
                return false;
                
                
                
            });
            
            return false;
        }
    };

    $jq(document).ready(function() {
        PeopleMedia.TodaysMatches.Initialize();
    });
</script>        

<script>

    $(document).ready(function() {
        
         $('#yesbuttonlink').click(function() {
            ajaxSearch(FRONT_SITE_URL + 'todaymatchs/profiletopmatchs/viewprofile');
            //$('#messageyesnomaybe').html(data);
            //alert('thanh cong');
            //alert('abc');
            $('#yesnomaybearea1').hide();
            $('.matchesmessage').css('display', 'block');   
            return false;

        });

        //PeopleMedia.TodaysMatches.SendSelection();
        $('#yesnomaybearea1').show();

       


    });

    function ajaxSearch(url) {
        $('#loadingImg').show();

        // khong dung thang nay
        $.ajax({
            url: url,
            //type: 'POST',
            error: function() {
                //alert('error');
                $('#loadingImg').hide();
            },
            success: function(data) {
                //$('#loadingImg').hide();
                //alert('dfvbnedvbek');
                //var idx = data.indexOf('@@done@@');

                //$('#mydemo').html(data);
                $('#yesbuttonlink').click(function() {
                    ajaxSearch(FRONT_SITE_URL + 'todaymatchs/profiletopmatchs/viewprofile');
                    //$('#messageyesnomaybe').html(data);
                    $('#iminterestedarea').css('display', 'block');
                    return false;
                });




            }

        });
    }
</script>




<style>
    .profilesolophotoview{min-height: 500px;}
    .profilesolophotoview div.imgslideshow a img{width:700px;}
</style>
<div id="backlink" title="Back to Home">
    <p>
        <a href="<?php echo FRONT_SITE_URL; ?>" class="alertLink">Back to Home</a>
    </p>
    <a href="<?php echo FRONT_SITE_URL; ?>"><img src="<?php echo FRONT_SITE_URL ?>www/images/images1/backarrow.png" border="0"></a>
</div>
<div style="display: none; background-color: yellow; font-size: 9pt; text-align: center; padding: 3px; margin-bottom: 4px;" id="PopBlockNotification">
    <div style="width: 760px;">
        <table border="0" cellspacing="0" cellpadding="3" align="center">
            <tr>
                <td>
                    <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/animatedexclamation.gif" alt="!"/>
                </td>
                <td align="center">
                    Your popup blocker stopped you from chatting with a member. <a href="javascript:void(0);" onclick="popNewICWindow();">click here</a> to open the window<br />
                    <a href="/v3/help//3#22">Click here</a> to learn how to disable your popup blocker on BBPeopleMeet.com
                </td>
                <td>
                    <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/animatedexclamation.gif" alt="!"/>
                </td>
            </tr>
        </table>
    </div>
</div>


<div id="profilecontenttop">
    <div id="profilecontenttopleft">
        <div id="profilepicture">
            <div id="profileoverlayplace">

                <div id="showBdayOverlay" style="display:none;">False</div>
                <div id="profileoverlay">
                    <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/polaroidicon.png" />
                    <p><a href="#tab=photos&zoomPhoto=0" >3 more photos</a></p>
                </div>
            </div>
            <a href="#tab=photos&amp;zoomPhoto=0">
                <?php if ($photosPrimary != false) { ?>
                    <img src="<?php echo FRONT_SITE_URL ?>www/uploads/photos/thumbs/<?php echo 'thumb_' . $photosPrimary['link_img']; ?>" border="0" />
                    <?php
                } else {
                    $img_gender = 'noPhoto-1.gif';
                    if ($profile['gender'] == 'femail') {
                        $img_gender = 'noPhoto-2.gif';
                    }
                    ?>
                    <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/<?php echo $img_gender; ?>" border="0" />
                <?php } ?>
            </a>
        </div>
        <div id="profiletopbtns">
            <a  href="javascript:;" class="button_style SaveToFavorites" title="Save as Favorite" style="<?php echo $isFavorite != false ? 'display:none' : ''; ?>">
                <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/staricon.png" class="buttonicon" />Save</a>
            <a href="javascript:;" class="button_style favoriteclicked RemoveFromFavorites" title="Saved as Favorite" style="<?php echo $isFavorite == false ? 'display:none' : ''; ?>">
                <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/yellowstaricon.png" class="buttonicon" />Save</a>
            <a id="SendFlirtButtonLink" href="javascript:;" class="button_style" title="Send Flirt">
                <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/smileicon.png" class="buttonicon" />Flirt</a>
        </div>


    </div>

    <div id="profilecontenttopright">
        <p id="profiletitle" class="color-alt">
            <?php echo $profile['username']; ?></p>
        <a class="SaveToFavorites" style="<?php echo $isFavorite != false ? 'display:none' : ''; ?>" href="javascript:;" title="Save as Favorite">
            <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/favoriteicon.png" class="favoriteicon" border="0"  /><p class="profilesavefavtext">Save as Favorite</p></a> 
        <a href="javascript:;" class="RemoveFromFavorites" style="<?php echo $isFavorite == false ? 'display:none' : ''; ?>" title="Saved as Favorite">
            <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/favoritedicon.png" class="favoriteicon" border="0"  /></a>


        <div id="profilebottomrow">
            <div id="profileinfo">
                <p>
                    <?php echo $data['date_birth'][0]; ?> | Atlanta, GA<br />
                    <?php echo Ucfirst($profile['gender']); ?> | <?php echo $data['tall'][1]; ?>  | Last Activity: This Week
                </p>
            </div>
            <div id="profilewarnings">
                <a href="javascript:;" title="Block Member" onclick="PeopleMedia.Popups.BlockUser('<?php echo $profile['user_id']; ?>', '<?php echo $profile['username']; ?>', 'False');
                PeopleMedia.ReloadAds();">
                    <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/blockusericon.png" border="0" /></a>
                <a href="javascript:;" id="ReportConcernLink" title="Report a Concern" onclick="PeopleMedia.Profile.ReportConcernPopup('<?php echo $profile['user_id']; ?>', '<?php echo $profile['username']; ?>', 'False');">
                    <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/concernicon.png" border="0" /></a>
                <a href="javascript:;" id="SendToFriendLink" title="Send to a Friend" onclick="PeopleMedia.Profile.ShareProfilePopup('<?php echo $profile['user_id']; ?>', '<?php echo $profile['username']; ?>');">
                    <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/sendtofriendicon.png" border="0" /></a>
            </div>

        </div>
        <?php if ($profile['greeting2']) { ?>
            <div class="lookingforanswer"><?php echo $profile['greeting2']; ?></div>
        <?php } ?>
        <div id="profilewritemessage">
            <textarea class="ProfileWriteMessageTextArea" id="ProfileInlineMessage" name="" cols="" rows="" >Say Hello...</textarea>
        </div>
        <div id="sendmessagebtn">
            <a href="javascript:;" id="SendMessageButtonLink" class="button_style" title="Send"><img src="<?php echo FRONT_SITE_URL ?>www/images/images1/mailicon.png" class="buttonicon">Send</a>
        </div>
    </div>
</div>
<div id="profilecontentmiddle" class="fourteen">
    <a href="#tab=about"><div id="profileaboutbtn" class="profiletabon" title="About">
            <p>
                About</p>
        </div></a>
    <a href="#tab=photos&zoomPhoto=0"><div id="profilephotosbtn" class="profiletaboff" title="Photos">
            <p>Photos</p>
        </div></a>
    <a href="#tab=history"><div id="profileourhistorybtn" class="profiletaboff" title="Our History">
            <p>Our History</p>
        </div></a>
</div>
<div id="profilecontentbottom">
    <div id="profileourhistoryarea" style="display: none;">
        <div id="ourhistorycontentarea">
            <div class="profilehistoryrepeat">
                <br>
                <p>Upgrade today to start a conversation with <?php echo $profile['username']; ?>.</p>
                <p class="clearfix">
                    &nbsp;</p>
                <div class="profileupgradehistorylink"><a title="Upgrade Now" class="button_style" href="#/upgrade">Upgrade Now</a></div> 
                <p class="clearfix">
                    &nbsp;</p>
            </div>
        </div>
        <p class="clearfix">
            &nbsp;</p>
    </div>
    <div id="profilephotosarea" style="display: none;">
        <div id="photoscontentarea">Loading...</div>
        <p class="clearfix">
            &nbsp;</p>
    </div>
    <div id="profileaboutarea">

        <div id="astrologerContent">
        </div>
        <div id="profileaboutleft">


            <div id="AboutMyMatch" style="display:none;">
            </div>

            <div id="AboutMe">
                <?php $aboutmeline = 0; ?>
                <?php if ($data['occupation'][0] != 'no answer') {
                    $aboutmeline = 1;
                    ?>
                    <div class="abouttext">
                        <p class="abouttextleft">
                            Occupation:</p>
                        <p class="abouttextright">
    <?php echo $data['occupation'][0]; ?></p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
                <?php } ?>
                <?php if ($data['education'][0] != 'no answer') {
                    $aboutmeline = 1;
                    ?>
                    <div class="abouttext">
                        <p class="abouttextleft">
                            Education:</p>
                        <p class="abouttextright">
    <?php echo $data['education'][0]; ?></p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
                <?php } ?>
<?php if ($data['income'][0] != 'no answer') {
    $aboutmeline = 1;
    ?>
                    <div class="abouttext">
                        <p class="abouttextleft">
                            Income:</p>
                        <p class="abouttextright">
                    <?php echo $data['income'][0]; ?></p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
                <?php } ?>
                <?php if ($aboutmeline == 1) { ?>
                    <div class="aboutmeline"></div>
                    <?php
                }
                $aboutmeline = 0;
                ?>
<?php if ($data['religion'][0] != 'no answer') {
    $aboutmeline = 1;
    ?>
                    <div class="abouttext">
                        <p class="abouttextleft">
                            Religion:</p>
                        <p class="abouttextright">
                    <?php echo $data['religion'][0]; ?></p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
<?php } ?>
<?php if ($data['political'][0] != 'no answer') {
    $aboutmeline = 1;
    ?>
                    <div class="abouttext">
                        <p class="abouttextleft">
                            Political Affiliation:</p>
                        <p class="abouttextright">
                    <?php echo $data['political'][0]; ?></p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
<?php } ?>
                        <?php if ($data['grewup'][0] != 'no answer') {
                            $aboutmeline = 1;
                            ?>
                    <div class="abouttext">
                        <p class="abouttextleft">
                            Where I<br/>grew up:</p>
                        <p class="abouttextright">
                    <?php echo $data['grewup'][0]; ?></p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
                <?php } ?>
                <?php if ($aboutmeline == 1) { ?>
                    <div class="aboutmeline"></div>
    <?php
}
$aboutmeline = 0;
?>
                        <?php if ($data['tall'][1] != 'no answer') {
                            $aboutmeline = 1;
                            ?>
                    <div class="abouttext">
                        <p class="abouttextleft">
                            Height:</p>
                        <p class="abouttextright">
    <?php echo $data['tall'][1]; ?></p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
                        <?php } ?>
<?php if ($data['bodytype'][0] != 'no answer') {
    $aboutmeline = 1;
    ?>
                    <div class="abouttext">
                        <p class="abouttextleft">
                            Body:</p>
                        <p class="abouttextright">
    <?php echo $data['bodytype'][0]; ?></p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
<?php } ?>
<?php if ($data['hair'][0] != 'no answer') {
    $aboutmeline = 1;
    ?>
                    <div class="abouttext">
                        <p class="abouttextleft">
                            Hair:</p>
                        <p class="abouttextright">
    <?php echo $data['hair'][0]; ?></p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
<?php } ?>
                <?php if ($data['eyes_color'][0] != 'no answer') {
                    $aboutmeline = 1;
                    ?>
                    <div class="abouttext">
                        <p class="abouttextleft">
                            Eyes:</p>
                        <p class="abouttextright">
                            <?php echo $data['eyes_color'][0]; ?></p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
                <?php } ?>
                <?php if ($data['ethnicity'][0] != 'no answer') {
                    $aboutmeline = 1;
                    ?>
                    <div class="abouttext">
                        <p class="abouttextleft">
                            Ethnicity:</p>
                        <p class="abouttextright">
                    <?php echo $data['ethnicity'][0]; ?></p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
<?php } ?>
                        <?php if ($aboutmeline == 1) { ?>
                    <div class="aboutmeline"></div>
    <?php
}
$aboutmeline = 0;
?>
                <?php if ($data['marial_status'][0] != 'no answer') {
                    $aboutmeline = 1;
                    ?>
                    <div class="abouttext">
                        <p class="abouttextleft">
                            Status:</p>
                        <p class="abouttextright">
    <?php echo $data['marial_status'][0]; ?></p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
                <?php } ?>
                <?php if ($data['childandliving'][0] != 'no answer') {
                    $aboutmeline = 1;
                    ?>
                    <div class="abouttext">
                        <p class="abouttextleft">
                            Children:</p>
                        <p class="abouttextright">
    <?php echo $data['childandliving'][0]; ?></p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
                <?php } ?>
<?php if ($data['pet'][0] != 'no answer') {
    $aboutmeline = 1;
    ?>
                    <div class="abouttext">
                        <p class="abouttextleft">
                            Pet(s):</p>
                        <p class="abouttextright">
    <?php echo $data['pet'][0]; ?></p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
                <?php } ?>
                <?php if ($data['zodiac'][0] != 'no answer' || 1 == 1) {
                    $aboutmeline = 1;
                    ?>
                    <div class="abouttext astrology">
                        <p class="abouttextleft">
                            Sign:</p>
                        <p class="abouttextright">
                            <a href="javascript:void(0)" onclick="PeopleMedia.Profile.showZodiacPopUp('8FEBF2D84E4E3865', 'ProfileOther', 'false', '', 'Home', '')"><?php echo $data['zodiac'][0]; ?></a>&nbsp;
                            /&nbsp;<a href="javascript:void(0)" onclick="PeopleMedia.Profile.showZodiacPopUp('8FEBF2D84E4E3865', 'Compatibility', 'false', '', 'Home', '')">Compatibility</a>
                        </p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
            <?php } ?>
            <?php if ($data['smoking'][0] != 'no answer') {
                $aboutmeline = 1;
                ?>
                    <div class="abouttext">
                        <p class="abouttextleft">
                            Smoking:</p>
                        <p class="abouttextright">
    <?php echo $data['smoking'][0]; ?></p>
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
<?php } ?>
            </div>

                <?php if ($aboutmeline == 1) { ?>
                <div class="aboutmeline"></div>
                    <?php
                }
                $aboutmeline = 0;
                ?>
            <div class="abouttext">
                <p class="abouttextleftbottom">Interested?</p>
                <a href="javascript:PeopleMedia.Profile.messageFocus();"><img src="<?php echo FRONT_SITE_URL ?>www/images/images1/mailicon.png" border="0" class="abouttextimage"></a>
                <p class="abouttextrightbottom"><a href="javascript:PeopleMedia.Profile.messageFocus();">Send her a message</a></p>
                <p class="clearfix">&nbsp;</p>
            </div>
        </div>
        <div id="profileaboutright">
            <h2 class="profileaboutheadline">
                A little about me...</h2>
            <p class="profileaboutp">
                <?php if ($profile['greeting1'] == '') { ?>
    <?php echo $profile['username'] ?> hasn’t answered this question yet. <br/>Let her know you’d like to learn more!   
                    <a id="greetinglink0" title="We’ll send a friendly Complete Your Profile request on your behalf." href="/v3/features/oneclickflirt?&amp;Profile=8FEBF2D84E4E3865&amp;Flirt=105&amp;back=Profile&amp;backparam=8FEBF2D84E4E3865|search=|back=Home|backparam=|From=Profile">Send Request</a>
<?php
} else {
    echo $profile['greeting1'];
}
?>

            </p>
            <h2 class="profileaboutheadline">
                About the one I&#39;m looking for...</h2>
            <p class="profileaboutp">
            <?php if ($profile['greeting2'] == '') { ?>
                    We don’t have an answer from <?php echo $profile['username'] ?> on this yet. Maybe you’re a match…<br/>Curious?  Ask her to answer this question. 
                    <a id="greetinglink1" title="We’ll let jazzygurl81 know that you’re curious about her answer to this question." href="/v3/features/oneclickflirt?&amp;Profile=8FEBF2D84E4E3865&amp;Flirt=105&amp;back=Profile&amp;backparam=8FEBF2D84E4E3865|search=|back=Home|backparam=|From=Profile">Send Request</a>
<?php
} else {
    echo $profile['greeting2'];
}
?>
            </p>
            <h2 class="profileaboutheadline">
                I&#39;d just like to add...</h2>
            <p class="profileaboutp">
                <?php if ($profile['greeting3'] == '') { ?>
                    Is there anything specific that you’d like to learn more about from <?php echo $profile['username'] ?>?<br/> 
                    <a id="greetinglink2" title="Let jazzygurl81 know that you’re curious about her answer to this question by asking a few questions of your own." href="javascript:;"><?php echo $profile['gender'] == 'female' ? 'Ask Her' : 'Ask Him'; ?></a>
<?php
} else {
    echo $profile['greeting3'];
}
?>
            </p>
            <p class="clearfix">
                &nbsp;</p>
                <?php if ($profile['question1'] > 0 || $profile['question2'] > 0 || $profile['question3'] > 0 || $profile['question4'] > 0 || $profile['question5'] > 0 || $profile['question6'] > 0 || $profile['question7'] > 0) { ?>
                <div id="profilepersonalityarea">
                    <h2 class="profileaboutheadline">
                        Personality Questions:
                    </h2>
                    <?php if ($profile['question1'] > 0) { ?>
                        <p>
                            Q. Do you enjoy cooking?</p>
                        <p class="profileabouta color-main">
                            A. <?php echo $data['cooking'][0]; ?></p>
    <?php } ?>
                    <?php if ($profile['question2'] > 0) { ?>
                        <p>
                            Q. How patient do you consider yourself?</p>
                        <p class="profileabouta color-main">
                            A. <?php echo $data['consider'][0]; ?></p>
    <?php } ?>
                    <?php if ($profile['question3'] > 0) { ?>
                        <p>
                            Q. Are you romantic?</p>
                        <p class="profileabouta color-main">
                            A. <?php echo $data['romantic'][0]; ?></p>
    <?php } ?>
                    <?php if ($profile['question4'] > 0) { ?>
                        <p>
                            Q. How punctual are you typically?</p>
                        <p class="profileabouta color-main">
                            A. <?php echo $data['punctual'][0]; ?></p>
                <?php } ?>
    <?php if ($profile['question5'] > 0) { ?>
                        <p>
                            Q. Do you enjoy going to the movies?</p>
                        <p class="profileabouta color-main">
                            A. <?php echo $data['go_movie'][0]; ?></p>
                    <?php } ?>
                    <?php if ($profile['question6'] > 0) { ?>
                        <p>
                            Q. How much do you enjoy going to live theatre?</p>
                        <p class="profileabouta color-main">
                            A. <?php echo $data['live_theatre'][0]; ?></p>
    <?php } ?>
                                <?php if ($profile['question7'] > 0) { ?>
                        <p>
                            Q. How much do you like reading?</p>
                        <p class="profileabouta color-main">
                            A. <?php echo $data['like_reading'][0]; ?></p>
    <?php } ?>
                </div>
<?php } ?>

<?php if ($profile['interestImg1'] != '' || $profile['interestImg2'] != '' || $profile['interestImg3'] != '') { ?>
                <div class="horizontal" id="profileinterestarea">
                    <h2 class="profileaboutheadline">
                        My Top Interests:</h2>
                    <p class="clearfix">
                        &nbsp;</p>
    <?php
    $interests = CONSTANT::getInterestsArray();
    $interestsName = CONSTANT::getInterestsNameArray();
    ?>
    <?php if ($profile['interestImg1'] != '') { ?>
                        <div class="interestarearepeat">
                            <div class="profileinterestleft">
                                <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/<?php echo $interests[$profile['interestImg1']]; ?>" class="interestborder" />
                                <p class="interestcategory color-main">
        <?php echo $interestsName[$profile['interestImg1']]; ?></p>
                                <p class="clearfix">
                                    &nbsp;</p>
                            </div>
                            <div class="profileinterestright">
                                <p class="profileaboutp">

                                </p></div>
                            <p class="clearfix">
                                &nbsp;</p>
                        </div>
                                <?php } ?>
    <?php if ($profile['interestImg2'] != '') { ?>
                        <div class="interestarearepeat">
                            <div class="profileinterestleft">
                                <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/<?php echo $interests[$profile['interestImg2']]; ?>" class="interestborder" />
                                <p class="interestcategory color-main">
        <?php echo $interestsName[$profile['interestImg2']]; ?></p>
                                <p class="clearfix">
                                    &nbsp;</p>
                            </div>
                            <div class="profileinterestright">
                                <p class="profileaboutp">

                                </p></div>
                            <p class="clearfix">
                                &nbsp;</p>
                        </div>
    <?php } ?>
    <?php if ($profile['interestImg3'] != '') { ?>
                        <div class="interestarearepeat">
                            <div class="profileinterestleft">
                                <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/<?php echo $interests[$profile['interestImg3']]; ?>" class="interestborder" />
                                <p class="interestcategory color-main">
        <?php echo $interestsName[$profile['interestImg3']]; ?></p>
                                <p class="clearfix">
                                    &nbsp;</p>
                            </div>
                            <div class="profileinterestright">
                                <p class="profileaboutp">

                                </p></div>
                            <p class="clearfix">
                                &nbsp;</p>
                        </div>
    <?php } ?>
                </div>
<?php } ?>

        </div>

    </div>
</div>
<p class="clearfix">
    &nbsp;</p>
<div id="zoomPhoto" style="display:none;">

    <div class="backtoprofile">
        <a href="#tab=about" class="ClosePhotoZoom"><img src="<?php echo FRONT_SITE_URL ?>www/images/images1/backarrow.png" alt="">Back to Profile</a>
    </div>
    <div class="profilesolophototop">
        <p id="profiletitle" class="color-alt"><a href="#tab=about"><?php echo $profile['username']; ?></a></p>
    </div>

    <div class="profilesolophotobuttons">
        <a class="button_style pushright" onclick="PeopleMedia.Profile.SendImInterestedFlirt('#tab=about');" title="I'm Interested" href="javascript:;">
            <img class="buttonicon" src="<?php echo FRONT_SITE_URL ?>www/images/images1/smileicon.png" alt="">I'm Interested</a>
        <a id="SendMessageButtonLink" class="button_style" title="Send" href="#messages/message?profile=8FEBF2D84E4E3865&amp;msgAction=New&amp;from=profile">
            <img class="buttonicon" src="<?php echo FRONT_SITE_URL ?>www/images/images1/mailicon.png" alt="">Send a Message</a>
    </div>
    <div class="profilesolophotoview">

        <div class="profilesolophotoconcern">
            <a href="javascript:;" id="ReportFullPhotoConcern">Report a concern</a>
        </div>
        <div class="profilesolophotonavbar">
            <div class="profilesolophotonav"><a href="javascript:;"><img src="<?php echo FRONT_SITE_URL ?>www/images/images1/leftarrow.png" class="left" alt="" border="0">Prev</a></div>
            <div class="profilesolophotoimgcount color-highlight-dark">x of y</div>
            <div class="profilesolophotonav"><a href="javascript:;">Next<img src="<?php echo FRONT_SITE_URL ?>www/images/images1/rightarrow.png" class="right" alt="" border="0"></a></div>
        </div>

        <div class='imgslideshow'>
            <a href="javascript:;"><img alt="" id="FullPhotoImage"></a>
        </div>
        <div class="profilesolophotocaption">
            <span>“</span><span>”</span>
        </div>
        <a class="button_style" title="Like This Photo" href="javascript:;" id="FullPhotoLikeButton">
            <img class="buttonicon" src="<?php echo FRONT_SITE_URL ?>www/images/images1/profilelikephotoicon.png" alt="">Like This Photo
        </a>
        <a class="button_style photogallerytransparent" title="Like This Photo" href="javascript:;" id="FullPhotoLikedButton">
            <img class="buttonicon" src="<?php echo FRONT_SITE_URL ?>www/images/images1/profilelikephotoicon.png" alt="">Like This Photo
        </a>
        <div class="commentareadiv">
            <textarea id="SendFullCommentTextArea" class="PhotoLikeTextArea">What do you like about this photo?</textarea>
            <p id="ProfileCommentedPhotoFull" style="display:none;">Your comment has been sent!</p>
        </div>

        <div>
            <a class="button_style" id="SendFullCommentButton" title="Tell her" href="javascript:;">Tell her</a>
        </div>

    </div>

</div>

<div class="resultsloadingoverlay" id="LoadingResultsDiv" style="display:none">
    <div class="resultsloading bgcolor-main">
        <h1>
            Sending your message...</h1>
        <div class="loadinggraphic">
            <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/waitwheel.gif" alt="" />
        </div>
        <p class="clearfix">
            &nbsp;</p>
    </div>
</div>


<script type="text/javascript">
    $jq(document).ready(function() {
        PeopleMedia.Profile.Actions = {
            AddFavoriteUrl: FRONT_SITE_URL + 'user/profile/SaveToFavorites',
            RemoveFavoriteUrl: FRONT_SITE_URL + 'user/profile/Unfavorite',
            SendBirthdayFlirtUrl: '/v3/Ajax/SendBirthdayFlirt',
            GetInteractionUrl: '/v3/Profile/GetInteractionHistory',
            GetPhotosUrl: FRONT_SITE_URL + 'user/profile/GetProfilePhotos',
            SendMessageUrl: FRONT_SITE_URL + 'user/profile/SendMessage', //x
            LikePhotoUrl: FRONT_SITE_URL + 'user/profile/LikePhoto', //x
            CommentPhotoUrl: FRONT_SITE_URL + 'user/profile/CommentPhoto', //x
            AstrologerCompatabilityUrl: '/v3/Profile/GetAstrologerCompatibility',
            SendFlirtUrl: FRONT_SITE_URL + 'user/profile/SendFlirt'//x
        };

        PeopleMedia.Profile.UserName = '<?php echo $profile['username'] ?>';
        PeopleMedia.Profile.EncodedMemberId = '<?php echo $profile['user_id'] ?>';
        PeopleMedia.Profile.GenderId = '<?php echo $dataForImgSlide[$profile['gender']]; ?>';
        PeopleMedia.Profile.HasMainPhoto = true;
        PeopleMedia.Profile.HimHerText = '<?php echo $dataForImgSlide[$dataForImgSlide[$profile['gender']]]; ?>';
        PeopleMedia.Profile.BirthdayFlirtSent = false;
        PeopleMedia.Profile.IsSelfProfile = false;
        PeopleMedia.Profile.IsTodaysMatch = false;
        PeopleMedia.Profile.TodaysMatchCurrent = 1;
        PeopleMedia.Profile.Photos = <?php echo $photosSlideShow; ?>;
        PeopleMedia.Profile.FeatureName = {Profile: 'profile', ProfilePhotoZoom: 'profilephotozoom', ProfilePhotoTab: 'profilephototab', TodaysMatch: 'todaysmatchesprofile'};
        PeopleMedia.Profile.CommonalityMessage = '';
        PeopleMedia.Profile.IsCommonalityEnabled = 'true';

        PeopleMedia.Profile.init();
    });
</script>